{template 'phpcms','header'}
<!--位置导航-->
<div class="pw location"><a class="base" href="">首页</a>{catpos($r['catid'])}
    </div>

<!--begin main-->
<div class="main" >
  <div class="main-l nobg">

	<!--begin-->
	<div id="content" class="newsDetail">
            <div id="content_head" class="caption">
            <h1 class="title">{if $titleintact}{$titleintact}{else}{$title}{/if}</h1>
            <div class="info">
              <div class="fl"><span class="time">{$inputtime}</span> <span><em>来源：</em>
			                               {$copyfrom}
             </span><span><em>作者：</em>{if $author}{$author}{else}{$userid}{/if}</span> 
			 {if $PHPCMS[show_hits]}浏览次数：<span id="hits">0</span>{/if} 
		{if isset($MODULE[comment])}{php list($keyid, $verify) = keyid_make('phpcms', 'content', 'title', $contentid);}
		<a href="{$MODULE[comment][url]}?keyid={$keyid}&verify={$verify}" style="color:red;">网友评论 <span id="comments_top">0</span> 条</a>
		{/if}
			 </div>
            </div>
            </div>
            <div class="newsCont">
            <div class="intro">
                                              <p class="sub">
                <strong>摘要：</strong>{$description}</p>
                                                      </div>
              			<div class="key mt20"><span>推荐关键字</span>
                         {$keywords}
                        </div>
                        <div class="detail" style="font-size: 14px;">{$content}</div>
                     </div>
    </div>
	<!--分页-->
    <div id="pages">{$pages}</div>
	 <h2 class="bdtit z mt30"><span class="titName"><b>相关文章</b></span></h2>
        <ul class="mig comp_list30">
                            {tag_内容页相关信息}
                
        </ul>
		
	<!--<p id="text_1" style="margin-top:1%;"> 
        {if isset($MODULE[mail])}<a href="javascript:$('#sendmail').submit();">[推荐]</a>{/if} 
        <a href="member/collect.php?contentid={$contentid}&action=add">[收藏]</a>
        <a href="javascript:window.print();">[打印]</a>  
        </p>-->
	{if isset($MODULE[comment])}
      {php list($keyid, $verify) = keyid_make('phpcms', 'content', 'title', $contentid);}	
	<div class="review mt10">
      <div class="title">
      <h2 class="fl">我要评论</h2>
      </div>
      <div class="revForm">	  
	  <form action="{$MODULE[comment][url]}?action=addpost" method="post" onSubmit="return checkForm();">
			<input type="hidden" name="keyid" value="{$keyid}"/>
			<input type="hidden" name="verify" value="{$verify}"/>
		<ul>
          <li>
            <textarea cols="45" rows="5" name="comment" id="comment" class="input revTxt" onfocus="reply_clearfield()" onblur="reply_restoration()"></textarea>			
		  </li>
          <li style="text-align:left;margin-left:1%;margin-top:1%;">
            <span id="checker">
			验证码：
			<input type="text" style="ime-mode: disabled;" size="6" id="checkcode" name="checkcode" />
			<img src="" id="code_img" style="display:none" onclick="this.src='checkcode.php?'+Math.random()" alt="点击换一张">
			</span>            
			<input id="dosubmit" name="dosubmit" class="btn ah" type="submit" value="发表评论" />
          </li>
        </ul>
        </form>
      <p class="tips">注：网友评论只供表达个人看法，并不代表本网站同意其看法或者证实其描述</p>
      </div>
      <div class="revList" id="commnent_tag">	  
	  <div class="conleft5_2 cGray">
	  <a href="{$MODULE[comment][url]}?keyid={$keyid}&verify={$verify}">        
			已有<strong class="c_red"><span id="comments">0</span></strong>位对此新闻感兴趣的网友发表了看法</a>
		</div>
		<ul class="conleft5_2ul cmoreBlue"></ul>
	  </div>
    
    </div>	
	<script type="text/javascript" src="data/js/comment_setting.js"></script>
      <script type="text/javascript">
      <!--
        $().ready(function() {        
            if(setting.ischecklogin == 0 && getcookie('auth') === null)
            {
                $('#comment').val("请您登陆后发表评论！");
                $('#comment').attr("disabled","disabled");
                $('#dosubmit').attr("disabled","disabled");
            }
            else 
            {
                $('#comment').val("我也来说两句！");
            }
        });
        function reply_restoration()
        {
            if($('#comment').val() == '')
            {
                $('#comment').val("我也来说两句！");
            }
        }
        function reply_clearfield()
        {
            if ($('#comment').val() == "我也来说两句！") 
            {
                $('#comment').val("");   
            }
			document.getElementById('code_img').style.display = 'inline';document.getElementById('code_img').src='checkcode.php';
        }
        function checkForm()
        {
            if($('#comment').val() == '' || $('#comment').val() == "我也来说两句！")
            {
                alert("内容不能为空");
                $('#comment').focus();
                return false;
            }
            if($('#checkcode').val() == '' )
            {
                alert("验证码不能为空");
                $('#checkcode').focus();
                return false;
            }
            if ($('#comment').val().length > 1000) 
            {
                alert("内容太长，最多 1000 个文字");
                return false;
            }
        }
      //-->
      </script>
    {/if} 	
	
	<!--end-->	
    <div class="clear"></div>
  </div>
  <div class="main-r">
    <!--广告位-->
    <div class="ad_side">
      <script language="javascript" src="data/js.php?id=5"></script>
    </div>
    <h3>图片文章</h3>
    <div>
      <ul class="picList120">
        {tag_栏目页图片文章}
      </ul>
    </div>
    <h3>推荐文章</h3>
    <div>
      <ol class="o140 lih hotList bg">
        {tag_列表页推荐文章}
      </ol>
    </div>
  </div>
</div>
<!--end main-->
<script language="JavaScript" src="count.php?contentid={$contentid}"></script>
{template 'phpcms','footer'}